package com.atguigu.guli.service.sms.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
//注意prefix要写到最后一个 "." 符号之前
@ConfigurationProperties(prefix="aliyun.sms")
public class SmsProperties {
    public String host;//: "https://gyytz.market.alicloudapi.com"
    public String path;//: "/sms/smsSend"
    public String method;//: "POST"
    public String appCode;//: "8e45699f00ff4bdbb807664045acd813"sendSms";
    public String appSecret;//: "2e65b1bb3d054466b82f0c9d125465e2"
    public String templateId1;//: "a09602b817fd47e59e7c6e603d3f088d"
}
